<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" import="java.util.*,com.unitedats.HR.Entity.*,com.unitedats.Project.Entity.*,com.unitedats.common.util.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<%
 List <PmProject> list = (List <PmProject>) request.getAttribute("searchResult");
 if (list != null && ! list.isEmpty() ) {
%>
<table class="tablesorter">
  <thead>
  <tr>
    <th>Seq</th>
    <th>Code</th>
    <th>Name</th>
    <th>Country</th>
    <th>Type</th>
    <th>Status</th>
  </tr>
  </thead>
  <tbody>
  <%
	  int i = 1;
	  for (PmProject p : list){
   %>
  <tr>
    <td><%=i++%></td>
    <td><a href="ProjectDisplay?pId=<%=p.getId()%>" target="_blank"><%=p.getCode() %></a></td>
    <td><%=p.getName() %></td>
    <td><%=p.getCountryId().getName()%></td>
    <td><%=Enums.PROJECT_TYPE.getNameById(p.getTypeId()) %></td>
    <td><%=Enums.PROJECT_STATUS.getNameById(p.getStatusId()) %></td>
  </tr>
  <%}%>
  <tbody>
</table>
<%}else{ %>
<h3 class="error">No matches found</h3>
<%} %>
<script>
	//$("table.tablesorter").data("sorter", false);
	$("table.tablesorter").tablesorter({
		widthFixed : false,
		widgets : [ 'zebra' ],
		headers: { 0: { sorter: false} }
	});
</script>
</body>
</html>